<%@ page language="java" import="com.Model.Pojo.*" import="java.util.*" import="com.sql.DAO" pageEncoding="UTF-8"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <link rel="stylesheet" href="/Bank/res/FrontPage/css/bootstrap.css">
    <link rel="stylesheet" href="/Bank/res/FrontPage/css/font-awesome.min.css">
    <link rel="stylesheet" href="/Bank/res/FrontPage/vendors/revolution-slider/css/layers.css">
    <link rel="stylesheet" href="/Bank/res/FrontPage/vendors/revolution-slider/css/navigation.css">
    <link rel="stylesheet" href="/Bank/res/FrontPage/vendors/revolution-slider/css/settings.css">
    <link rel="stylesheet" href="/Bank/res/FrontPage/vendors/imagehover/css/imagehover.min.css">
    <link rel="stylesheet" href="/Bank/res/FrontPage/vendors/animate/animate.min.css">
    <link rel="stylesheet" href="/Bank/res/FrontPage/vendors/iCheck/css/all.css">
    <link rel="stylesheet" href="/Bank/res/FrontPage/vendors/sweetalert2/css/sweetalert2.min.css">
    <link rel="stylesheet" href="/Bank/res/FrontPage/css/custom.css">
    
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>
  
  <body>
<!-------------Header--------->
<div class="tp-header">
    <div class="container">
        <div class="row">
            <div class="col-xs-7 col-md-6">
                <a href="https://im.qq.com/" target="_blank"> <i class="fa fa-qq" aria-hidden="true"></i></a>
                <a href="https://weixin.qq.com/" target="_blank"><i class="fa fa-wechat" aria-hidden="true"></i></a>
                <a href="https://weibo.com/" target="_blank"><i class="fa fa-weibo" aria-hidden="true"></i></a>
                <a href="https://www.apple.com/cn/" target="_blank"> <i class="fa fa-apple" aria-hidden="true"></i></a>
            </div>
            <div class="col-xs-5 col-md-6 text-right">
            	<% if(session.getAttribute("users") == null){ %>
                <span class="signin" data-toggle="modal" data-target="#myModal"><span class="hidden-xs">登录</span><i
                        class="fa fa-sign-in visible-xs-block" aria-hidden="true"></i> </span>
                <span class="register" data-toggle="modal" data-target="#myModal"><span
                        class="hidden-xs"></span>注册<i class="fa fa-user-plus visible-xs-block"
                                                            aria-hidden="true"></i></span>
				<%}else{
					String str = ((Users)session.getAttribute("users")).getXingming();
					out.print("欢迎回来：" + str + "   ");
				%>
				<span class="signin1" data-toggle="modal" data-target="#myModal"><span class="hidden-xs"> 切换账号 </span><i
                        class="fa fa-sign-in visible-xs-block" aria-hidden="false"></i> </span>
                    <%}%>
            </div>
        </div>
    </div>
</div>

<!-- ----------------------------------导航栏开始---------------------------------------- -->
<header>
    <div class="container">
        <nav class="navbar navbar-default">
            <div class="navbar-header">
                <button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#myMegamenu"><span
                        class="sr-only">切换导航</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>

                </button>
                <a class="navbar-brand" href="/Bank/WebPage/FrontPage/index.jsp">
                    <img src="/Bank/res/FrontPage/images/3.png" class="img-responsive" alt="company-logo" height="55" width="132">
                </a>
            </div>
            <div class="collapse navbar-collapse navbar-right" id="myMegamenu">
                <ul class="nav navbar-nav">
                    <li class="list2"><a href="/Bank/WebPage/FrontPage/index.jsp" class="hvr-underline-from-center">主页</a></li>
                    <li class="list2"><a href="/Bank/WebPage/FrontPage/FinancialServicePage/FinancialService.jsp" class="hvr-underline-from-center">金融服务</a></li>
                    <li class="list2"><a href="/Bank/WebPage/FrontPage/InvestmentAndFinancingPage/InvestmentAndFinancing.jsp" class="hvr-underline-from-center">投资理财</a></li>
					<li class="list2"><a href="/Bank/WebPage/FrontPage/CreditCardPage/CreditCard.jsp" class="hvr-underline-from-center">信用卡</a></li>
                    <li class="list2"><a href="/Bank/WebPage/FrontPage/FundManagementPage/FundManagement.jsp" class="hvr-underline-from-center">资金管理</a></li>
					<li class="list2"><a href="/Bank/WebPage/FrontPage/ConvenientLoanPage/ConvenientLoan.jsp" class="hvr-underline-from-center">便捷贷款</a></li>
                    <li class="list2"><a href="/Bank/WebPage/FrontPage/BankHistoryPage/BankHistory.jsp" class="hvr-underline-from-center">银行历史</a></li>
                    <li class="list2"><a href="guanlixitong/guanliindex.jsp" class="hvr-underline-from-center">管理系统</a></li>
                </ul>
            </div>
        </nav>
    </div>
</header>
<!-- ----------------------------------导航栏结束---------------------------------------- -->

<!------------------------------------登录注册模块开始------------------------------------>
<div class="modal fade" id="myModal" role="dialog">
    <div class="modal-dialog modal-sm">
        <div class="modal-content">
            <br>
            <div class="bs-example bs-example-tabs">
                <ul id="myTab" class="nav nav-tabs ">
                    <li id="signin_tab" class="active"><a href="#signin" data-toggle="tab">登录</a></li>
                    <li id="reg_tab"><a href="#signup" data-toggle="tab">注册</a></li>
                </ul>
            </div>
            <div class="modal-body">
                <div id="myTabContent" class="tab-content">
                	<!-- -------------------------------------登录开始------------------------------------------------ -->
                    <div class=" signin tab-pane fade active in" id="signin">
                        <form id="dengluyanzheng" class="form-horizontal" action="/Bank/denglu.do" method="post">
                            <fieldset>
                            	<div class="control-group section-top-10">
                                    <label class="control-label"><span
                                            class="glyphicon glyphicon-user text-primary"></span>选择你的身份：</label>
                                    <div class="controls">
                                        <select class="form-control input-medium" id="shenfenxinxi" name="shenfen" size="1">
							                <option value="users"> 用户 </option>
							                <option value="amd"> 管理员 </option>
							            </select>
                                    </div>
                                </div>
                                <div class="control-group section-top-10">
                                    <label class="control-label" for="userid"><span
                                            class="glyphicon glyphicon-user text-primary"></span> 账号 :</label>
                                    <div class="controls">
                                        <input id="userid" name="userid" type="text" class="form-control input-medium"
                                               placeholder="请输入账号/手机号/邮箱" required>
                                    </div>
                                </div>
                                <div class="control-group section-top-10">
                                    <label class="control-label" for="passwordinput"><span
                                            class="glyphicon glyphicon-eye-open text-primary"></span> 密码 :</label>
                                    <div class="controls">
                                        <input type="password" id="passwordinput" name="passwordinput"
                                               class="form-control input-medium" placeholder="请输入密码" required>
                                    </div>
                                </div>
                                <div class="checkbox">
                                    <label><input type="checkbox" class="blue">记住密码</label>
                                </div>
                                <input id="paturl" type="hidden" name="url" value="">
                                <div id="ErrorMessageDiv" style="color:red"></div>
                                <div class="control-group">
                                    <div class="controls section-top-10">
                                        <button id="signin_btn" name="signin" type="submit" class="btn btn-success form-control"> 登录  </button>
                                    </div>
                                </div>
                            </fieldset>
                        </form>
                    </div>
                    <!-- -------------------------------------登录结束------------------------------------------------ -->
                    
                    
                    <!-- -------------------------------------注册开始------------------------------------------------ -->
                    <div class="tab-pane fade signup" id="signup">
                        <form class="form-horizontal" action="/Bank/zhuce.do" method="post">
                            <fieldset>
                                <div class="control-group section-top-10">
                                    <label for="user"><span class="glyphicon glyphicon-user text-primary"></span> 姓名
                                        :</label>
                                    <div class="controls">
                                        <input id="user" name="name" class="form-control input-large" type="text"
                                               placeholder="请输入真实姓名" required="">
                                    </div>
                                </div>
                                <div class="control-group section-top-10">
                                    <label class="control-label" for="Email_id"><span
                                            class="glyphicon glyphicon-envelope text-primary"></span> 邮箱 :</label>
                                    <div class="controls">
                                        <input id="Email_id" name="Email" class="form-control input-large" type="email"
                                               placeholder="格式：abcdef@xyz.com" required>
                                    </div>
                                </div>
                                <div class="control-group section-top-10">
                                    <label for="user"><span class="glyphicon glyphicon-user text-primary"></span> 手机号
                                        :</label>
                                    <div class="controls">
                                        <input id="shoujihao" name="shoujihao" class="form-control input-large" type="text"
                                               placeholder="请输入手机号" required="">
                                    </div>
                                </div>
                                <div class="control-group section-top-10">
                                    <label for="password"><span
                                            class="glyphicon glyphicon-eye-open text-primary"></span> 密码 :</label>
                                    <div class="controls">
                                        <input id="password" name="password" class="form-control input-large"
                                               type="password" placeholder="请输入密码" required>

                                    </div>
                                </div>
                                <div class="control-group section-top-10">
                                    <label class="control-label" for="reenterpassword"><span
                                            class="glyphicon glyphicon-repeat text-primary"></span> 确认密码 :</label>
                                    <div class="controls">
                                        <input id="reenterpassword" class="form-control input-large"
                                               name="reenterpassword" type="password" placeholder="再次输入上方密码"
                                               required="">
                                    </div>
                                </div>
                                <div class="control-group section-top-10">
                                    <label class="control-label" for="confirmsignup"></label>
                                    <div class="controls">
                                        <button id="confirmsignup" name="confirmsignup" type="submit" 
                                                class="btn btn-success form-control">提交注册
                                        </button>
                                    </div>
                                </div>
                            </fieldset>
                        </form>
                    </div>
                    <!-- -------------------------------------注册结束------------------------------------------------ -->
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-danger" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>
<!--------------------登录注册模块结束---------------------->